import 'package:OASys/views/announcement/announcementPage.dart';
import 'package:OASys/views/event/eventPage.dart';
import 'package:OASys/views/icon/myIcons.dart';
import 'package:OASys/views/matter/matterPage.dart';
import 'package:OASys/views/meeting/meetingPage.dart';
import 'package:OASys/views/menu/menuPage.dart';
import 'package:OASys/views/paper/paperPage.dart';
import 'package:OASys/views/personnel/personnelPage.dart';
import 'package:OASys/views/report/reportPage.dart';
import 'package:OASys/views/role/rolePage.dart';
import 'package:OASys/views/schedule/schedulePage.dart';
import 'package:OASys/views/user/userPage.dart';
import 'package:flutter/material.dart';

import 'MenuItem.dart';
import '../views/project/projectPage.dart';

class Layout extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: GridView(
        padding: EdgeInsets.all(30),
        gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
          crossAxisCount: 4,
          crossAxisSpacing: 5,
          mainAxisSpacing: 5,
        ),
        children: [
          MenuItem(Icons.supervisor_account, "用户管理", UserPage(), '/user'),
          MenuItem(Icons.account_circle_rounded, "角色管理", Rolepage(), '/role'),
          MenuItem(Icons.vpn_key_outlined, "权限管理", MenuPage(), '/menu'),
          MenuItem(MyIcons.meeting, "会议管理", MeetingPage(), '/meeting'),
          MenuItem(Icons.polymer, "流程管理", EventPage(), '/event'),
          MenuItem(
              Icons.assignment, "通知公告", AnnouncementPage(), '/announcement'),
          // MenuItem(Icons.date_range, "日程管理", SchedulePage(), '/schedule'),
          MenuItem(Icons.chrome_reader_mode, "工作汇报", ReportPage(), '/report'),
          MenuItem(Icons.file_copy_outlined, "文件中心", PaperPage(), '/paper'),
          MenuItem(Icons.group_work, "工作事项", MatterPage(), '/matter'),
          MenuItem(Icons.layers_sharp, "项目管理", ProjectPage(), '/project'),
          MenuItem(Icons.line_style, "人事管理", PersonnelPage(), '/personnel'),
        ],
      ),
      decoration: BoxDecoration(
        color: Color.fromRGBO(230, 230, 230, 1),
      ),
    );
  }
}
